package parsexml.enity;

/**
 * @author 李栋
 * @version 1.0.0
 * @className XmlSubject.java
 * @createTime 2021年07月14日 20:21:00
 */
public class XmlSubject {

    private String subjectNo;

    private String subjectName;

    private float score;

    public String getSubjectNo() {
        return subjectNo;
    }

    public void setSubjectNo(String subjectNo) {
        this.subjectNo = subjectNo;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        XmlSubject that = (XmlSubject) o;

        return subjectNo.equals(that.subjectNo);
    }

    @Override
    public int hashCode() {
        return subjectNo.hashCode();
    }
}
